package org.colcon.web.client;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import org.colcon.web.model.CLI;
import org.colcon.web.model.Model;

public class Tester 
{
	public static void main(String[] args) throws IOException 
	{
		Model.init();
		
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		
		System.out.print("> ");
		String input = reader.readLine();
		
		while(input != null)
		{
			String output = CLI.execute(input);
			System.out.println(output);
			
			System.out.print("> ");
			input = reader.readLine();
		}
	}
}
